package com.behavior.state.lift;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {
        final Context context = new Context();
        System.out.println("====closing====");
        context.setLiftState(new ClosingState());
        context.open();
        context.close();
        context.run();
        context.stop();

        System.out.println("====running====");
        context.setLiftState(new RunningState());
        context.open();
        context.close();
        context.run();
        context.stop();
    }
}
